window: Remove needless call to ensure_state_flag_backdrop() on map
authorRui Matos <tiagomatos@gmail.com>
Sat, 31 Mar 2012 14:16:24 +0000 (16:16 +0200)
committerRyan Lortie <desrt@desrt.ca>
Fri, 4 May 2012 00:24:05 +0000 (17:24 -0700)
This call was forcing needless work since gtk_window_map() already
does a gdk_window_show() which initially sets GDK_WINDOW_STATE_FOCUSED
that we then handle regularly on the widget's window state event
handler.

https://bugzilla.gnome.org/show_bug.cgi?id=673237

gtk/gtkwindow.c

index 1cdad4e04338c9af7ca0ad0afeefe5890c60fbe0..41c5f915e5a4c4a5e4f8f80065c665a6f14ad64e 100644 (file)
@@ -5017,8 +5017,6 @@ gtk_window_map (GtkWidget *widget)
     gtk_window_set_focus_visible (window, gtk_window_get_focus_visible (priv->transient_parent));
   else
     gtk_window_set_focus_visible (window, visible_focus == GTK_POLICY_ALWAYS);
-
-  ensure_state_flag_backdrop (widget);
 }
 
 static gboolean